package serviceImpl;

import dao.ClassesMapper;
import entity.Classes;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import service.ClassesService;

import java.util.List;

@Service
public class ClassesServiceImpl implements ClassesService {
    @Autowired
    private ClassesMapper classesMapper;
    @Override
    public List<Classes> getAllClasses() {
        return classesMapper.getAllClasses();
    }

    @Override
    public boolean updateClasses(Classes classes) {
        return classesMapper.updateClasses(classes);
    }

    @Override
    public Classes getClassesByClassID(String classID) {
        return classesMapper.getClassesByClassID(classID);
    }

    @Override
    public boolean deleteClasses(String classID) {
        return classesMapper.deleteClasses(classID);
    }

    @Override
    public boolean addClasses(Classes classes) {
        return classesMapper.addClasses(classes);
    }

    @Override
    public List<Classes> getClassesByClassIDORClassName(String classID, String className) {
        return classesMapper.getClassesByClassIDORClassName(classID,className);
    }
}
